﻿// *****************************************************************************
// **                   Ladenius MediaCenter TVSeries                         **
// ** ----------------------------------------------------------------------- **
// ** (c) 2008 by Jurjen Ladenius                                             **
// *****************************************************************************

#region Using directives
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ladenius.TheTVDB.Entities;
using Ladenius.TheTVDB.Dao;
#endregion

namespace Ladenius.TheTVDB.Business {
    /// <summary>
    /// Business logic for series
    /// </summary>
    internal static class SeriesHome {

        /// <summary>
        /// Finds the series.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <returns>a list of matching series</returns>
        internal static List<Series> Find(string name) {
            return XMLRequester.FindSeries(name);
        }

        /// <summary>
        /// Gets the series by ID.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        internal static Series GetByID(int id, Language language) {
            return XMLRequester.GetSeriesByID(id, language);
        }
    }
}
